
import { base } from 'nc-lightapp-front';
import { connect, render } from '../../../../../hrpub/common/frame';
import DimissionModalAction from './actions';
import HeaderAction from '../header/actions/header'; 
const { NCDatePicker } = base;

const DimissionModal = render({
    actions: {
        dimissionModalAct: DimissionModalAction,
        headerAction: HeaderAction
    }
})(({props, action, state}) => {  
    const { main, modal } = props;
    let { dateData, json } = main;
    // const { createModal } = modal;
    return(
        modal.createModal('dimissionModal',{
            title: json['gx6008-000294'], /* 国际化：离职时间 */
            size:'sm',
            content: <NCDatePicker
                        // format={format}
                        // format={dateData}
                        // onSelect={onSelect}
                        onChange={action.dimissionModalAct.changeDate}
                        // locale={zhCN}
                        defaultValue={dateData}
                        value={dateData}
                        // placeholder={dateInputPlaceholder}
                    />,
            beSureBtnClick: action.dimissionModalAct.affirmDimissionAction //点击确定按钮事件
        })
    )
}) 


export default DimissionModal;